package br.ufmg.dcc.paa.collections;

public class Instruction {

	private InstructionKind constraintName;
	private String left;
	private String right;
	
	public Instruction(InstructionKind constraintName, String left, String right) {
		this.constraintName = constraintName;
		this.left = left;
		this.right = right;
	}
	
	public InstructionKind getConstraintName() {
		return constraintName;
	}
	public void setConstraintName(InstructionKind constraintName) {
		this.constraintName = constraintName;
	}
	public String getLeft() {
		return left;
	}
	public void setLeft(String left) {
		this.left = left;
	}
	public String getRight() {
		return right;
	}
	public void setRight(String right) {
		this.right = right;
	}
	
	@Override
	public String toString() {
		return constraintName.toString() + " with operands \"" + left + "\" and \"" + right + "\"";
	}
	
}
